﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Timetabling.Core
{
    /// <summary>
    /// Clase recurso
    /// </summary>
    public class Resource : Identity
    {
        private IList<Classroom> clasrooms = null; 

        /// <summary>
        /// Nombre del recurso
        /// </summary>
        public String Name { get; set; }
        /// <summary>
        /// Centro del recurso
        /// </summary>
        public Center Center { get; set; }
        /// <summary>
        /// Tipo del recurso
        /// </summary>
        public ResourceType MyProperty { get; set; }
        /// <summary>
        /// Listado de clases
        /// </summary>
        public IList<Classroom> Classrooms
        { get {
            if (clasrooms == null) {
                clasrooms = new List<Classroom>();
            }
            return clasrooms;
        }
            set {
                clasrooms = value;
            }
        }
    }
}
